package vip.sweet.biz.modular.comment.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.sweet.biz.modular.comment.entity.BizCommentImages;
import vip.sweet.biz.modular.comment.mapper.BizCommentImagesMapper;
import vip.sweet.biz.modular.comment.params.BizCommentImagesAddParams;
import vip.sweet.biz.modular.comment.service.BizCommentImagesService;

/**
 * @author ASUS
 * @Date 2025/10/4 23:47
 * @Descripition
 */
@Service
public class BizCommentImagesServiceImpl extends ServiceImpl<BizCommentImagesMapper, BizCommentImages> implements BizCommentImagesService {
    @Override
    public boolean add(BizCommentImagesAddParams addCommentsParams) {
        if (ObjectUtil.isNotEmpty(addCommentsParams))
            return save(BeanUtil.toBean(addCommentsParams, BizCommentImages.class));
        return false;
    }
}
